package com.oraro.paygatewaybiz.module.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oraro.paygatewaybiz.module.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.core.annotation.Order;

/**
 * 
 * 
 * @author jianghuiyong
 * @email 
 * @date 2018-11-16 16:34:25
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

	OrderEntity selectByOrderId(Long orderId);

	Integer getCountByTradeNo(String outTradeNo);

	OrderEntity getByTradeNo(String outTradeNo);

	boolean updateOrderChannel(@Param("orderId") Long orderId, @Param("channelType") String channelType);
}
